package com.faiz.generic;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
public class Student extends Person implements Comparable<Student>{
    int xixi;
    String stuId;
    SchoolClass schoolClass;
    Double score;
    Boolean male;

    public Student(String name, int age, int xixi, String stuId, SchoolClass schoolClass, Double score, Boolean male) {
        super(name, age);
        this.xixi = xixi;
        this.stuId = stuId;
        this.schoolClass = schoolClass;
        this.score = score;
        this.male = male;
    }



    @Override
    public int compareTo(Student o) {
        return this.age - o.age;
    }
}
